<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:body>
	
	<h:form prependId="false">
		<h:panelGrid class="newPatientGrid" columns="4">
			<h:panelGrid columns="2">  
			    <f:facet name="header">  
			        <span class="headerView">Personal Information</span>  
			    </f:facet>  
			  
			    <h:outputLabel class="labelView" for="firstname" value="Firstname: *" />  
			    <p:inputText id="firstname" value="#{person.firstName}" label="Firstname" />
			    
			    
			    <h:outputLabel class="labelView" for="middlename" value="Middlename: *" />  
			    <p:inputText id="middlename" value="#{person.middleName}" label="Middlename" />  
			  
			    <h:outputLabel class="labelView" for="lastname" value="Lastname: *" />  
			    <p:inputText id="lastname" value="#{person.lastName}" required="true" label="Lastname"/>
			    
			    <h:outputLabel class="labelView" for="age" value="Age: *" />  
			    <p:inputText id="age" value="#{person.age}" required="true" label="Age"/>
			    
			    <h:outputLabel class="labelView" for="city" value="City: *" />  
			    <p:inputText id="city" value="#{person.city}" required="true" label="City"/>   
			   
			</h:panelGrid>
			<h:panelGrid class="analysisGrid" columns="2">  
			    <f:facet name="header">  
			        <span class="headerView">Analysis</span>  
			    </f:facet>  
			  
			    <h:outputLabel class="labelView" for="gemoglobin" value="Gemoglobin: " />  
			    <p:inputText id="gemoglobin" value="#{analysis.gemoglobin}" label="Gemoglobin" />
			    
			    <h:outputLabel class="labelView" for="leykocyty" value="Leykocyty: " />  
			    <p:inputText id="leykocyty" value="#{analysis.leykocyty}" label="Leykocyty" />
			    
			    <h:outputLabel class="labelView" for="eritrocyty" value="Eritrocyty: " />  
			    <p:inputText id="eritrocyty" value="#{analysis.eritrocyty}" label="Eritrocyty" />
			    
			    <h:outputLabel class="labelView" for="shoe" value="Shoe: " />  
			    <p:inputText id="shoe" value="#{analysis.shoe}" label="Shoe" />
			    
			    <h:outputLabel class="labelView" for="formula" value="Formula: " />  
			    <p:inputText id="formula" value="#{analysis.formula}" label="Formula" />
			    
			    <h:outputLabel class="labelView" for="trombocyty" value="Trombocyty: " />  
			    <p:inputText id="trombocyty" value="#{analysis.trombocyty}" label="Trombocyty" />
			    
			    <h:outputLabel class="labelView" for="glyukoza" value="Glyukoza: " />  
			    <p:inputText id="glyukoza" value="#{analysis.glyukoza}" label="Glyukoza" />
			    
			    <h:outputLabel class="labelView" for="bilirubin" value="Bilirubin: " />  
			    <p:inputText id="bilirubin" value="#{analysis.bilirubin}" label="Bilirubin" />
			    
			    <h:outputLabel class="labelView" for="tymolova" value="Tymolova: " />  
			    <p:inputText id="tymolova" value="#{analysis.tymolova}" label="Tymolova" />
			    
			    <h:outputLabel class="labelView" for="ast" value="Ast: " />  
			    <p:inputText id="ast" value="#{analysis.ast}" label="Ast" />
			    
			    <h:outputLabel class="labelView" for="alt" value="Alt: " />  
			    <p:inputText id="alt" value="#{analysis.alt}" label="Alt" />
			    
			    <h:outputLabel class="labelView" for="sechovyna" value="Sechovyna: " />  
			    <p:inputText id="sechovyna" value="#{analysis.sechovyna}" label="Sechovyna" />
			    
			    <h:outputLabel class="labelView" for="kreatynin" value="Kreatynin: " />  
			    <p:inputText id="kreatynin" value="#{analysis.kreatynin}" label="Kreatynin" />   
			  
			    <f:facet name="footer">
			    	<h:form>
			    		<h:commandButton value="Add" icon="ui-icon-plus" style="margin:0" actionListener="#{newPersonHandler.takeParamsActionListener}"/>
			    	</h:form>  
			    </f:facet>  
			</h:panelGrid>
		</h:panelGrid>
	</h:form>
	
</h:body>
</html>